


class demo(object):
    def __init__(self, name , age):
        self.name = name
        self.age = age
    def __str__(self):
        return 'demo 描述： {} {} '.format(self.name, self.age);


    pass;

dd = demo('麻子', 99);
print(demo)
print(demo('麻子1', 991))
print(dd)
print(dd.__str__)
print(dd.__str__())
print(type(dd.__str__()))
print('{:-^60}'.format('分割线'))
print(dir(demo))
print('{:-^60}'.format('分割线'))
sss = dd.__str__();
print(sss);




